package ESP.Util;



import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class SpringUtil {
	
	private static ApplicationContext ctx = new ClassPathXmlApplicationContext(new String[] {
            								"applicationContext-resources.xml",
											"applicationContext-jdbc.xml"});
	

	public static Object getBean(String beanName){
         return ctx.getBean(beanName);
    }

	public static void main(String[] args) {
		System.out.println(ctx);
	}
}
